package com.lry.rpc.starter.util;

import com.lry.rpc.starter.extend.ReferenceAnnotationBeanPostProcessor;
import com.lry.rpc.starter.extend.RpcStartupLifecycle;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;

public interface RpcBeanUtils {
    static void registerCommonBeans(BeanDefinitionRegistry registry) {

        BeanRegistrar.registerInfrastructureBean(registry, "referenceAnnotationBeanPostProcessor", ReferenceAnnotationBeanPostProcessor.class);

        BeanRegistrar.registerInfrastructureBean(registry, "rpcStartupLifecycle", RpcStartupLifecycle.class);

    }
}
